<h1>客户管理 - <span id="secondHeading">增加客户家人信息</span></h1>
<%= javascript_include_tag "prototype" %>
<%= javascript_include_tag "util" %>
<%= javascript_include_tag "calendar" %>
<%= form_tag ({}, :id=>"input-form") %>
<TABLE border="0" id="INPUT_TABLE">
	<TR>
		<TD colspan="2">
			<% if @flash[:notice] -%>
			<div id="notice"><%= @flash[:notice] %></div>
			<% end -%>
		</TD>
	</TR>
	<tr>
      <td width="100" nowrap>选择客户：</td>
      <td><%=collection_select(:family, :agent_id, @agents, :id, :name)%></td>
    </tr>
    <tr>
      <td>称谓：</td>
      <td><%= text_field("family", "appellation",:size=>"30") %></td>
    </tr>
    <tr>
      <td>姓名：</td>
      <td><%= text_field("family", "name",:size=>"30") %></td>
    </tr>
    <tr>
      <td>性别：</td>
      <td><%= select(:family, :sex, [ ['女', 0],['男', 1] ])%></td>
    </tr>
    <tr>
      <td>生日：</td>
      <td>
                <script language=javascript>
                        var bir_Date=new dateSelector();
                        bir_Date.inputID='birthday';
                        bir_Date.inputName='family[birthday]';
                        bir_Date.display();
                </script>
              
      </td>
    </tr>
     <tr>
      <td colspan="2" align="right">
      <input type="submit" value="添加" class="sub">&nbsp;OR&nbsp;<input type="reset" value="重新填写" class="cal"></td>
    </tr>
</table>
<%= end_form_tag %>
